package com.wltt.product.ahuthr.mapper;

import com.wltt.product.ahuthr.mapper.base.BaseMapper;
import com.wltt.product.ahuthr.model.po.SystemFlowNodePO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @ClassName: SystemFlowNodePO
 * @Description: 系统业务流程节点 Dao
 * @Date: 2024-09-05 15:14:09
 * @Author yanggl
 */
public interface SystemFlowNodeMapper extends BaseMapper<SystemFlowNodePO, Long> {

    /**
     * 根据系统流程id查询流程节点
     *
     * @param systemFlowId
     * @return
     */
    List<SystemFlowNodePO> queryBySystemFlowId(@Param("systemFlowId") Long systemFlowId);

    /**
     * 根据系统流程id和编码查询
     *
     * @param systemFlowId
     * @param systemNodeCode
     * @return
     */
    SystemFlowNodePO queryBySystemFlowIdAndNodeCode(@Param("systemFlowId") Long systemFlowId, @Param("systemNodeCode") String systemNodeCode);

    /**
     * 根据系统流程id和上一个节点id查询
     *
     * @param systemFlowId
     * @param preNodeId
     * @return
     */
    SystemFlowNodePO queryBySystemFlowIdAndPreNodeId(@Param("systemFlowId") Long systemFlowId, @Param("preNodeId") Long preNodeId);
}